package ae.pcfc.cldos.online.web.services.filetransfer.provider;

import ae.pcfc.cldos.online.web.services.filetransfer.DotNetFileTransfer;

public class DotNetFileTransferImpl implements DotNetFileTransfer {

//	private String formUrl;
//	
//	public void setFormUrl(String formUrl) {
//		this.formUrl = formUrl;
//	}
//	
//	private String fileParam = "file";
//	
//	public void setFileParam(String fileParam) {
//		this.fileParam = fileParam;
//	}
	
//	public DotNetFileTransferResultBean transferFileToDotNet(File file){
//		HttpClient httpClient = new DefaultHttpClient();
//		HttpPost httpPost = new HttpPost(formUrl);
//		
//		FileBody uploadFilePart = new FileBody(file);
//		MultipartEntity reqEntity = new MultipartEntity();
//		
//		reqEntity.addPart(fileParam, uploadFilePart);
//		httpPost.setEntity(reqEntity);
//		
//		try {
//			HttpResponse response = httpClient.execute(httpPost);
//			HttpEntity responseEntity = response.getEntity();
//			BufferedReader br = new BufferedReader(new InputStreamReader(responseEntity.getContent()));
//			String line = null;
//			while((line=br.readLine())!=null){
//				System.out.println(line);
//			}
//		} catch (ClientProtocolException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		} catch (IOException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}
//		
//		
//		return null;
//	}
	
}
